package Interfaces

import "net"

type IConnection interface {
	Start()
	Stop()

	GetTCPConnection() *net.TCPConn
	GetConnID() uint16
	RemoteAddr() net.Addr

	SendMsg(data []byte)
}

type HandleFun func(*net.TCPConn, []byte, int) error
